import request from '@/utils/request'

export default {
  listAll() {
    return request({
      url: '/log/all',
      method: 'get'
    })
  },
  listPage(currentPage, pageSize, queryLogDTO) {
    return request({
      url: `/log/search/${currentPage}/${pageSize}`,
      method: 'post',
      data: queryLogDTO
    })
  },
  deleteUser(ids) {
    return request({
      url: `/log/delete`,
      method: 'post',
      data: ids
    })
  },
  addUser(userLog) {
    return request({
      url: `/log/add`,
      method: 'post',
      data: userLog
    })
  },
  findById(id) {
    return request({
      url: `/log/${id}`,
      method: 'get'
    })
  },
  updateUser(userLog) {
    return request({
      url: `/log/update`,
      method: 'post',
      data: userLog
    })
  },

}
